#!/usr/bin/env bash
# curl还有其他参数，如果不清楚，可以到浏览器 copy as curl即可。

# 发送post json请求
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{
    "year": 2021,
    "examSeasonCode": 1,
    "productLineCode": 25,
    "gradeCode": 1,
    "subjectCode": 2501,
    "pageSize": 1,
    "pageNum": 10
}' \
  http://localhost:10577/innerapi/product/searchProduct

echo '==========='

# POST application/x-www-form-urlencoded
#curl -d "domainAccount=value1&operator=value2&businessCustomId=10" \
#    -H "Content-Type: application/x-www-form-urlencoded" \
#    -X POST http://localhost:10577/account/deleteAccount

# curl发起get请求
curl http://localhost:10577/innerapi/product/queryDefaultProperties
